#include "utils.h"

void on_delete_event(GtkWidget* emitter, GdkEvent evt, gpointer nothing)
{
	exit(0);
}

GtkWidget* simple_win(int w,int h)
{
	GtkWidget* pWin;
	pWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	gtk_window_set_default_size(GTK_WINDOW(pWin),w,h);
	gtk_widget_show(pWin);
	g_signal_connect(G_OBJECT(pWin),"delete_event",(GtkSignalFunc) on_delete_event,NULL);
	
	return pWin;
}